package com.wkw.sdemo.repository;

import com.wkw.sdemo.domain.Person;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface PersonRepository extends JpaRepository<Person,Integer> {
    List<Person> findByName(String name);
    List<Person> findByAge(Integer age);
}
